#include <iostream>
using namespace std;

int main()
{
	int n; cin >> n;
	if(n & 1) 
	{
		cout << -1 << endl;
		return 0;	
	}	
	
	for(int i = 31; i >= 0; i--) if(n >> i & 1) cout << (1 << i) << " ";
		

	
	return 0;
} 
